using SimpleJSON;

namespace Gj
{
    public class ChatTextHelper : ChatItemHelper
    {
        [SelectRef(UIKey.DATA_KEY)] public SelectKey tagKey;
        public string format;

        public override void SetData(JSONObject obj)
        {
            base.SetData(obj);
            BindData(string.Format(format, tagKey.Get(obj).Value, textKey.Get(obj).Value));
        }
    }
}